#include "framework.h"

//WARNING:THIS PROGRAM MAY NOT RUN CORECTLY.

								
#define USER_CONFIG()											P12_PushPull_Mode()



void core_timer_routine()
{
	SOFT_TIMER_PULSE();
}

void test()
{
	P12 = !P12;
	asynchronous_call(test);
}


void main(void)
{
	USER_CONFIG();
	timer0_init(TIMER_LOAD_VALUE16(0.001,FOSC,12), core_timer_routine);
	INTERRUPT_ENABLE();
	timer0_start();

	asynchronous_call(test);
	
	for(;;)
	{
		event_pull();
		soft_timer_pull();
	}
}


